package cn.hongyu.aop;
/*
用一般测试 比较繁琐
 */
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AopTestSimple {
    @Test
    public void test1(){
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("application.xml");
        TargetInterface target = (TargetInterface) context.getBean("target");
        target.save();
    }
}
